<?php
/**
 * Groups module for XOOPS
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code 
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       The Groups Project http://code.google.com/p/groupsforxoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         groups
 * @since           2.3.0
 * @author          Hui Xiao < xh.8326@gmail.com >
 * @version         $Id: form.quick.post.php Sat Jul 18 13:04:38 CST 2009
 */

if ( !defined("XOOPS_ROOT_PATH") ) exit;

$subject = "Re:".$threads_obj->getVar("threads_subject");

$form = new XoopsForm("", "form", "action.php", "post",true);

$form->addElement( new XoopsFormText(_GP_FORM_GROUP_SUBJECT,"post_subject",48,255,$subject));
$form->addElement( new XoopsFormTextArea(_GP_FORM_GROUP_CONTENT,"post_content","",8,54));

$form->addElement(new XoopsFormHidden("mode","reply"));
$form->addElement(new XoopsFormHidden("ac","create"));
$form->addElement(new XoopsFormHidden("op","post"));
$form->addElement(new XoopsFormHidden("tid",$tid));

$startval = !empty($counts) ? ceil($counts / $limit) : 0;
if ( $startval > 1 ) {
	$form->addElement(new XoopsFormHidden("start",($startval-1)*$limit ));
}
	
$form->addElement(new XoopsFormHidden("group_id",$group_id));
$form->addElement(new XoopsFormButton("","submit",_SUBMIT,"submit"));
$form->assign($xoopsTpl);
